<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>财税答疑-后台管理</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
        <link rel="shortcut icon" href="/Public/images/favicon.ico" type="image/x-icon" />
        <link href="/Public/Admin/css/bootstrap.css" type="text/css" rel="stylesheet" />
        <link href="/Public/Admin/js/font-awesome/css/font-awesome.min.css" type="text/css" rel="stylesheet" />
        <link href="/Public/Admin/js/jquery/datetimepicker/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet" media="screen" />
        <link href="/Public/Admin/css/stylesheet.css" rel="stylesheet" media="screen" type="text/css" />
        <script src="/Public/Admin/js/jquery/datetimepicker/moment.js" type="text/javascript"></script>
        <script src="/Public/Admin/js/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
        <script src="/Public/Admin/js/bootstrap/js/bootstrap.min.js" type="text/javascript" ></script>
        <script src="/Public/Admin/js/jquery/datetimepicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
        <script src="/Public/Admin/js/common.js" type="text/javascript"></script>
        <script src="/Public/Admin/js/js.cookie-2.1.2.min.js" type="text/javascript"></script>
    </head>
    <body>
        <div id="container">
            <header id="header" class="navbar navbar-static-top">
                <div class="navbar-header">
                    <a type="button" id="button-menu" class="pull-left"><i class="fa fa-indent fa-lg"></i></a>
                    <a href="<?php echo U('');?>" class="navbar-brand"><img src="/Public/Admin/image/logo.png" alt="财税答疑后台管理" title="财税答疑后台管理" /></a>
                </div>
                <ul class="nav pull-right">
                    <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user fa-lg"></i><span class="hidden-xs">&nbsp;欢迎：<?php echo ($adminInfo["user_name"]); ?></span></a>
                        <ul class="dropdown-menu dropdown-menu-right">
                            <!--<li class="dropdown-header"><a href="javascript:;" data-url="<?php echo U('Index/map');?>"><i class="fa fa-picture-o fa-lg"></i>&nbsp;网站地图</a></li>-->
                            <li class="dropdown-header"><a href="<?php echo U('Admin/adminInfo',array('admin_id'=>$adminInfo['admin_id']));?>" target="rightContent"><i class="fa fa-lock fa-lg"></i>&nbsp;修改密码</a></li>
                        </ul>
                    </li>
                    <!--<li><a href="/" target="_blank" title="网站首页"><i class="fa fa-home fa-lg"></i></a></li>-->
                    <li><a target="rightContent" href="<?php echo U('/Admin/System/cleanCache');?>" title="清除缓存"><i class="fa fa-refresh  fa-lg"></i></a></li>
                    <!--<li><a href="/Home/Doc" target="_blank" title="文档"><i class="fa fa-book fa-lg"></i></a></li>-->
                    <li><a href="<?php echo U('Admin/logout');?>" title="安全退出"><i class="fa fa-sign-out fa-lg"></i></a></li>
                </ul>
            </header>

<nav id="column-left">
    <ul id="menu">
        <?php if(is_array($menu_list)): foreach($menu_list as $k=>$vo): if(!empty($vo["sub_menu"])): ?><li id="p_<?php echo ($k); ?>">
                    <a class="parent"><i class="fa <?php echo ($vo["icon"]); ?> fw"></i> <span><?php echo ($vo["name"]); ?></span></a>
                    <ul>
                        <?php if(is_array($vo["sub_menu"])): foreach($vo["sub_menu"] as $kk=>$vv): if(empty($vv[sub_menu])): ?><li onclick="makecss(this)" data-id="<?php echo ($vv["act"]); ?>_<?php echo ($vv["control"]); ?>"><a href='<?php echo U("$vv[control]/$vv[act]");?>' target='rightContent'><?php echo ($vv["name"]); ?></a></li>

                                <?php else: ?>
                                <li onclick="makecss(this)">
                                    <a class="parent"><i class="fa <?php echo ($vv["icon"]); ?> fw"></i> <span><?php echo ($vv["name"]); ?></span></a>
                                    <ul>
                                        <?php if(is_array($vv["sub_menu"])): foreach($vv["sub_menu"] as $kkk=>$vvv): ?><li onclick="makecss(this)" data-id="<?php echo ($vvv["act"]); ?>_<?php echo ($vvv["control"]); ?>"><a href='<?php echo U("$vvv[control]/$vvv[act]");?>' target='rightContent'><?php echo ($vvv["name"]); ?></a></li><?php endforeach; endif; ?>
                                    </ul>
                                </li><?php endif; endforeach; endif; ?>
                    </ul>
                </li><?php endif; endforeach; endif; ?>
    </ul>
</nav>

<section class="content-wrapper right-side" id="riframe" style="">
    <iframe id='rightContent' name='rightContent' src="<?php echo U('Admin/Index/welcome');?>" width='100%' frameborder="0"></iframe>
</section>
<script>
$('#riframe').css({
    'margin-left': $('#column-left').width()
});
</script>
<footer id="footer">
    <strong>Copyright &copy; 2015-2025 <a href="http://www.xiarikui.com">珠海夏浪信息科技有限公司旗下产品</a>.</strong>保留所有权利。
</footer>
</div>
<script type="text/javascript">
$(document).ready(function() {
    $("#riframe").height($(window).height() - 100); //浏览器当前窗口可视区域高度
    $("#rightContent").height($(window).height() - 100);
    $('.main-sidebar').height($(window).height() - 50);
});

var tmpmenu = 'index_Index';

function makecss(obj) {
    $('li[data-id="' + tmpmenu + '"]').removeClass('active');
    $(obj).addClass('active');
    tmpmenu = $(obj).attr('data-id');
}

function callUrl(url) {
    layer.closeAll('iframe');
    rightContent.location.href = url;
}
</script>
</body>

</html>